/*
 * Copyright (c) 2007-2021 西安交通信息投资营运有限公司 版权所有
 */

package com.xci.xajtfb.bus.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelIgnore;
import com.github.lvyanyang.core.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

/**
 * 存储管理公交线路数据
 * @author 马星俊 maxingjun@xci96716.com
 * @since 2021-03-09 10:28:18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "存储管理公交线路数据")
public class TbBusLine extends BaseEntity {
    /**
     * 线路ID
     */
    @ExcelIgnore
    @Excel(name = "线路ID", width = 20d)
    @ApiModelProperty(value = "线路ID", position = 1)
    private String lineId;

    /**
     * 线路序号
     */
    @Length(max = 20, message = "线路序号长度不能超过{max}个字符")
    @Excel(name = "线路序号", width = 20d)
    @ApiModelProperty(value = "线路序号", position = 2)
    private String lineSerial;

    /**
     * 所属企业
     */
    @Excel(name = "所属企业", width = 20d)
    @ApiModelProperty(value = "所属企业", position = 3)
    private Integer companyId;

    /**
     * 起点站
     */
    @Length(max = 50, message = "起点站长度不能超过{max}个字符")
    @Excel(name = "起点站", width = 20d)
    @ApiModelProperty(value = "起点站", position = 6)
    private String stationFrom;

    /**
     * 终点站
     */
    @Length(max = 50, message = "终点站长度不能超过{max}个字符")
    @Excel(name = "终点站", width = 20d)
    @ApiModelProperty(value = "终点站", position = 7)
    private String stationTo;

    /**
     * 起点站首班时间
     */
    @Length(max = 10, message = "起点站首班时间长度不能超过{max}个字符")
    @Excel(name = "起点站首班时间", width = 20d)
    @ApiModelProperty(value = "起点站首班时间", position = 8)
    private String firstTime;

    /**
     * 起点站末班时间
     */
    @Length(max = 10, message = "起点站末班时间长度不能超过{max}个字符")
    @Excel(name = "起点站末班时间", width = 20d)
    @ApiModelProperty(value = "起点站末班时间", position = 9)
    private String lastTime;

    /**
     * 终点站首班时间
     */
    @Length(max = 10, message = "终点站首班时间长度不能超过{max}个字符")
    @Excel(name = "终点站首班时间", width = 20d)
    @ApiModelProperty(value = "终点站首班时间", position = 10)
    private String firstTimeD;

    /**
     * 终点站末班时间
     */
    @Length(max = 10, message = "终点站末班时间长度不能超过{max}个字符")
    @Excel(name = "终点站末班时间", width = 20d)
    @ApiModelProperty(value = "终点站末班时间", position = 11)
    private String lastTimeD;

    /**
     * 站点数
     */
    @Excel(name = "站点数", width = 20d)
    @ApiModelProperty(value = "站点数", position = 17)
    private Integer stationNumber;

    /**
     * 站点数(下行)
     */
    @Excel(name = "站点数(下行)", width = 20d)
    @ApiModelProperty(value = "站点数(下行)", position = 18)
    private Integer stationNumberD;

    /**
     * 票制
     */
    @Length(max = 10, message = "票制长度不能超过{max}个字符")
    @Excel(name = "票制", width = 20d)
    @ApiModelProperty(value = "票制", position = 19)
    private String ticketSystem;

    /**
     * 票价
     */
    @Excel(name = "票价", width = 20d)
    @ApiModelProperty(value = "票价", position = 20)
    private Double ticketPrice;

    /**
     * 是否刷卡线路(0否1是)
     */
    @Excel(name = "是否刷卡线路(0否1是)", width = 20d)
    @ApiModelProperty(value = "是否刷卡线路(0否1是)", position = 22)
    private Boolean isSwipe;


    /**
     * 对应智能调线路ID
     */
    @Length(max = 10, message = "对应智能调线路ID长度不能超过{max}个字符")
    @Excel(name = "对应智能调线路ID", width = 20d)
    @ApiModelProperty(value = "对应智能调线路ID", position = 41)
    private String compareLineId;

    /**
     * 对应智能调线路名称
     */
    @Length(max = 50, message = "对应智能调线路名称长度不能超过{max}个字符")
    @Excel(name = "对应智能调线路名称", width = 20d)
    @ApiModelProperty(value = "对应智能调线路名称", position = 42)
    private String compareLineSerial;

}